package edu.sctu.practice.class01.zhangwang.assigns.assign01;

/**
 * Created by Z_W on 2015/10/8.
 */
public class Circle {

    private double radius = 0;
    public static final double Pai = 3.14;
    public double square = 0;
    public static int numOfObjicts = 0;

    public Circle(double radius) {


        this.radius = radius;
        numOfObjicts++;
    }

    public void getSquare() {
        square = Pai * radius * radius;
        System.out.println("************************");
    }

    public static void printCircle(Circle c) {
        System.out.println("圆C的半径为："+c.radius);
        System.out.println("圆C的面积为："+c.square);
    }
}
